const Mock = require('mockjs')

module.exports = () => {
  return Mock.mock({
    "list|300": [{
      "title": '@ctitle',
      "id": "@id",
      "price": "@integer(5000,20000)",
      "education|1": [{
        code: 0,
        name: '大专'
      }, {
        code: 1,
        name: '本科'
      }, {
        code: 2,
        name: '硕士'
      }, {
        code: 3,
        name: '博士'
      }, {
        code: 4,
        name: '不限'
      }],
      "count": "@integer(10, 500)",
      "city": "@city",
      "isFinancing": "@boolean",
      "type|1": ["推荐", "附近", "最新"]
    }]
  })
}
